// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './assets/css/gonggong.css'
import './Elemenet/element.js'
Vue.config.productionTip = false

// 导入vuex处理数据系统
import Vuex from 'vuex'
Vue.use(Vuex)
var car=localStorage.getItem('car')||''
var store = new Vuex.Store({
    state:{
      car:parseInt(car)
    },
    mutations:{
      getid(state,index){
        state.car=index
        localStorage.setItem('car',JSON.stringify(state.car))
      },
    
    },
    getters:{
       
    }
})
//异步请求
import axios from 'axios'
Vue.prototype.$axios = axios
axios.defaults.baseURL = 'https://music.tryto.cn/'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  store
})
